package utils;

public class OrderNumUtil {
	/**
	 * 获取交易单号
	 * @return
	 */
	public static String createTradeNumber(){
		return "YBXY"+System.currentTimeMillis();
	}
	
	public static String createTradeNumber(String heard){
		return heard+System.currentTimeMillis();
	}
	
	
	public static String getNonceStr() throws Exception{
		String str = "YBXY"+System.currentTimeMillis();
		return MD5Helper.getEncoderByMd5(str).toUpperCase();
	}
	
	public static String getNonceStr(String heard) throws Exception{
		String str = heard+System.currentTimeMillis();
		return MD5Helper.getEncoderByMd5(str).toUpperCase();
	}
}
